﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gx.Model.Entity
{
    [Table("LK_WarehouseAdjust")]
    public class LKWarehouseAdjust
    {
        [Key]
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        [Column("Id")]
        public int Id
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }


        private string _billNo;
        /// <summary>
        /// 调仓单编号
        /// </summary>
        [Column("BillNo")]
        public string BillNo
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_billNo))
                    _billNo = string.Empty;
                return _billNo;
            }
            set { _billNo = value; }
        }


        private System.DateTime _adjustTime;
        /// <summary>
        /// 调仓时间
        /// </summary>
        [Column("AdjustTime")]
        public System.DateTime AdjustTime
        {
            get
            {
                if (_adjustTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _adjustTime;
            }
            set { _adjustTime = value; }
        }


        private int _customerId;
        /// <summary>
        /// 客户
        /// </summary>
        [Column("CustomerId")]
        public int CustomerId
        {
            get
            {
                return _customerId;
            }
            set { _customerId = value; }
        }


        private string _customerNo;
        /// <summary>
        /// 客户编号
        /// </summary>
        [Column("CustomerNo")]
        public string CustomerNo
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_customerNo))
                    _customerNo = string.Empty;
                return _customerNo;
            }
            set { _customerNo = value; }
        }


        private string _customerName;
        /// <summary>
        /// 客户名称
        /// </summary>
        [Column("CustomerName")]
        public string CustomerName
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_customerName))
                    _customerName = string.Empty;
                return _customerName;
            }
            set { _customerName = value; }
        }


        private decimal _totalTon;
        /// <summary>
        /// 总吨重
        /// </summary>
        [Column("TotalTon")]
        public decimal TotalTon
        {
            get
            {
                return _totalTon;
            }
            set { _totalTon = value; }
        }


        private int _total;
        /// <summary>
        /// 总件数
        /// </summary>
        [Column("Total")]
        public int Total
        {
            get
            {
                return _total;
            }
            set { _total = value; }
        }


        private decimal _amount;
        /// <summary>
        /// 总金额
        /// </summary>
        [Column("Amount")]
        public decimal Amount
        {
            get
            {
                return _amount;
            }
            set { _amount = value; }
        }


        private bool _isByTon;
        /// <summary>
        /// 按吨操作
        /// </summary>
        [Column("IsByTon")]
        public bool IsByTon
        {
            get
            {
                return _isByTon;
            }
            set { _isByTon = value; }
        }


        private string _remark;
        /// <summary>
        /// 备注
        /// </summary>
        [Column("Remark")]
        public string Remark
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_remark))
                    _remark = string.Empty;
                return _remark;
            }
            set { _remark = value; }
        }


        private System.DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        public System.DateTime CreateTime
        {
            get
            {
                if (_createTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _createTime;
            }
            set { _createTime = value; }
        }


        private int _createUserId;
        /// <summary>
        /// 创建人id
        /// </summary>
        [Column("CreateUserId")]
        public int CreateUserId
        {
            get
            {
                return _createUserId;
            }
            set { _createUserId = value; }
        }


        private string _createUser;
        /// <summary>
        /// 创建人
        /// </summary>
        [Column("CreateUser")]
        public string CreateUser
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_createUser))
                    _createUser = string.Empty;
                return _createUser;
            }
            set { _createUser = value; }
        }


        private int _modifyUserId;
        /// <summary>
        /// 修改人id
        /// </summary>
        [Column("ModifyUserId")]
        public int ModifyUserId
        {
            get
            {
                return _modifyUserId;
            }
            set { _modifyUserId = value; }
        }


        private string _modifyUser;
        /// <summary>
        /// 修改人
        /// </summary>
        [Column("ModifyUser")]
        public string ModifyUser
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_modifyUser))
                    _modifyUser = string.Empty;
                return _modifyUser;
            }
            set { _modifyUser = value; }
        }


        private System.DateTime _modifyTime;
        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("ModifyTime")]
        public System.DateTime ModifyTime
        {
            get
            {
                if (_modifyTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _modifyTime;
            }
            set { _modifyTime = value; }
        }


        private bool _isDeleted;
        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("IsDeleted")]
        public bool IsDeleted
        {
            get
            {
                return _isDeleted;
            }
            set { _isDeleted = value; }
        }

        private int _companyId;
        /// <summary>
        /// 公司
        /// </summary>
        [Column("CompanyId")]
        public int CompanyId
        {
            get
            {
                return _companyId;
            }
            set { _companyId = value; }
        }
    }
}

